package data;
public class Student {
//    学生类
private int id;
    private String user;
    private String pwd;

    private String session;

    private String name;

    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", user='" + user + '\'' +
                ", pwd='" + pwd + '\'' +
                ", session='" + session + '\'' +
                ", name='" + name + '\'' +
                ", class_id=" + class_id +
                '}';
    }

    public String simplSql(){
        return "("+name+","+user+","+pwd+","+class_id+")";
    }

    private int class_id;


    public int getId() {
        return id;
    }

    public Student setId(int id) {
        this.id = id;
        return this;
    }

    public String getUser() {
        return user;
    }

    public Student setUser(String user) {
        this.user = user;
        return this;
    }

    public String getPwd() {
        return pwd;
    }

    public Student setPwd(String pwd) {
        this.pwd = pwd;
        return this;
    }

    public String getSession() {
        return session;
    }

    public Student setSession(String session) {
        this.session = session;
        return this;
    }

    public Student(String name, int class_id) {
        this.name = name;
        this.class_id = class_id;
    }

    public Student() {

    }

    public String getName() {
        return name;
    }

    public Student setName(String name) {
        this.name = name;
        return this;
    }

    public int getClass_id() {
        return class_id;
    }

    public Student setClass_id(int class_id) {
        this.class_id = class_id;
        return this;
    }
}
